import hyRequest from '../../index'

enum DashboardAPI {
  ComplaintCategoryInLastSevenDays = '/tickets/dashboard/ComplaintTicketsInLastSevenDays',
  NCVQSInLastSevenDays = '/tickets/dashboard/NCVQSTicketsInLastSevenDays',

  getTicktesTrendBySourceId = '/tickets/dashboard/CrawlTicktesTrendBySourceId',
}

export function getvwComplaintDataInLast7Days() {
  return hyRequest.get({
    url: DashboardAPI.ComplaintCategoryInLastSevenDays + '/' + 'vw'
  })
}

export function getvwNCVQSDataInLast7Days() {
  return hyRequest.get({
    url: DashboardAPI.NCVQSInLastSevenDays + '/' + 'vw'
  })
}

export function getaudiComplaintDataInLast7Days() {
  return hyRequest.get({
    url: DashboardAPI.ComplaintCategoryInLastSevenDays + '/' + 'audi'
  })
}

export function getaudiNCVQSDataInLast7Days() {
  return hyRequest.get({
    url: DashboardAPI.NCVQSInLastSevenDays + '/' + 'audi'
  })
}


export function getTicktesTrendBySourceId(sourceId : string) {
  return hyRequest.get({
    url: DashboardAPI.getTicktesTrendBySourceId + '/' + sourceId
  })
}



